<?php $this->_extends('../_layouts/blank_layout'); ?>
<?php $this->_block('contents'); ?>
<link href="<?=Q::ini('custom_system/base_url')?>css/main.css" rel="stylesheet" type="text/css" />
<h2>退货单详细信息</h2>
<table class="form_table" width="70%">
<tr>
	<th>退货单号</th>
	<td><h3><?=$sales_return['number']?></h3></td>
	<th>退货日期</th>
	<td><?=$sales_return['make_time']?></td>
</tr>
<tr>
	<th>销售订单号</th>
	<td><h3><?=$sales_order['number']?></h3></td>
	<th>网站/店铺</th>
	<td><?=$shop['name']?></td>
</tr>
</table>
<h2>退货信息</h2>
<table width="100%" class="list_table">
<tr>
	<th width="50">ID</th>
	<th>退货产品</th>
	<th width="100">退货数量</th>
</tr>
<?foreach ($return as $r):?>
<tr <?if ($r['id'] == $_GET['id']):?>style="backgroud-color:red;"<?endif;?>>
	<td><?=$r['id']?></td>
	<td><?='('.$r['product_number'].')' . $r['product_name']?></td>
	<td><?=$r['quantity']?></td>
</tr>
<?endforeach;?>
</table>
<?php $this->_endblock();?>